package tron.service;

import org.springframework.stereotype.Service;
import tron.entity.User;
import tron.repostiory.UserRepository;

@Service
public class UserService {
    final UserRepository userRepository;

    public UserService(UserRepository userRepository) {
        this.userRepository = userRepository;
    }

    public User getUserById(String id) {
        return userRepository.findById(id).get();
    }
}
